Skip to main content

All Questions

Tagged with
0votes
0answers
85views

Bitmask permissions

It's a tutorial problem in a Linux course: The command ls -la / gives this result: total 72 drwxr-xr-x 19 root root 4096 Apr 15 23:39 . drwxr-xr-x 19 root root 4096 Apr 15 23:39 .. lrwxrwxrwx 1 ...
KukuruzoFirst's user avatar
0votes
0answers
30views

Trying to unrar specific files within a specific directory

I have a bash script that extracts files from a .rar file. I want to extract only *.foo and mydirectory/*.bar. I followed Unrar specific files using wildcards to get at the first group of files, but ...
Frotz's user avatar
0votes
2answers
70views

Linux permissions for a user not logged in sudoers

There is a server to which I have access (login and password). Logging in as this user on this server it is found that my user is not logged into sudoers. No additional information is available, I ...
KukuruzoFirst's user avatar
1vote
2answers
77views

How to loop over a list of extensions to check that files of each type exist?

I have the following directory structure: main_dir/ │ ├── randstr1.randstr2.tar.gz │ ├── randstr3.randstr4.tar.gz │ ├── randstr5.randstr6.tar.gz │ ├── randstr7.ext2 │ └── randstr8.ext3 ...
teeeeee's user avatar
0votes
0answers
78views

Rsync command to move directories and overwrite existing ones

I need an rsync command that moves directories from a source folder to a remote folder and overwrites existing directories on the remote side. I don't want to write into existing directories on the ...
Mayor Mayer's user avatar
-1votes
1answer
1kviews

Why do "force create mode" and "force directory mode" parameters exist in smb.conf?

I am reading How to Set Up a Network Shared Folder on Ubuntu With Samba. At the "Step 2: Configuring Samba" section the following configuration is given: [sambashare] comment= Network Shared ...
Manuel Jordan's user avatar
0votes
0answers
203views

Ubuntu - trying to delete a file that has no inode

I try to delete a file that is left in a directory, but even an ls -i will not give me an inode to remove it. Deleting/removing the directory won't work even with the inode. $ ls -ila ls: cannot ...
merkc's user avatar
0votes
1answer
163views

Any command to exclude all types of files only? [duplicate]

Does rsync or cp have a command to exclude any type of file besides manually excluding extensions such as *.txt, *.pdf, *.jpg OR setting -maxdepth or using --exclude=dir/* (used with rsync which ...
anmac1789's user avatar
1vote
4answers
113views

Checking if there's a file with a particular name in a lot of directories

I'm new to Linux, but I'm wondering if this is possible: I want to check if a directory has a file with a .bam filename suffix, and there are hundreds of directories to check. I don't really want to ...
Eric Zheng's user avatar
0votes
1answer
501views

Symbolic link on Linux to a Windows-like file - not sure this is possible

I have to migrate a Windows application to Linux. The directory/filename format within this Windows application are of the form C:/dir/dir/file (I know, not exactly Windows format with reference to ...
tale852150's user avatar
0votes
1answer
173views

How to iterate through directories of zip files and locate & append files without a .zip extension

I have a directory of sub-directories that contain sub-directories which are supposed to be compressed archive files. Structure is illustrated below ParentDirectory |-SubDirectoryA |-File Mr X.zip |-...
McGooks's user avatar
0votes
1answer
97views

Find files with matching substrings and move them into directory

My directory contains a list of .idat file pairs ending with either _Grn or _Red. For each pair, I want to create a directory named after the substring before the first _ delimiter and move the files ...
Anon's user avatar
  • 133
1vote
1answer
63views

Is there a generic term for working with files and directories?

I was wondering if there is a generic term that describes working with or manipulating files and directories that includes all the different ways of manipulating files? Similar to the term coding that ...
t800's user avatar
0votes
1answer
31views

How can numbered files be moved and renamed to subsequent numbered files to correct directory?

In ~/wrongdir there are mpv-shot0001.jpg, mpv-shot0002.jpg, mpv-shot0003.jpg, mpv-shot0004.jpg, mpv-shot0005.jpg where the screenshot key was pressed when a mpv was initiated in ~/wrongdir. The ...
Digit's user avatar
4votes
3answers
3kviews

How do I delete files with the same names in multiple sub-folders from the command line?

I have a folder called simulations, which contains 101 subfolders. These sub-folders are named posterior_predictive_sim_1 to posterior_predictive_sim_101. Each subfolder contains five files: seq.nex, ...
Namenlos's user avatar

153050per page
close